﻿namespace AntQuartzUI.Services.Dtos;

public class JobStatusDto
{
    /// <summary>
    /// Job名称
    /// </summary>
    public string JobName { get; set; } = string.Empty;
    
    /// <summary>
    /// Job 组名称
    /// </summary>
    public string GroupName { get; set; } = string.Empty;
    
    /// <summary>
    /// Job 描述
    /// </summary>
    public string Description { get; set; } = string.Empty;
    
    /// <summary>
    /// 类名
    /// </summary>
    public string ClassName { get; set; } = string.Empty;
    
    /// <summary>
    /// 命名空间
    /// </summary>
    public string NameSpace { get; set; } = string.Empty;
    
    /// <summary>
    /// 执行模式 串行、并行
    /// </summary>
    public string ExecuteModel { get; set; } = string.Empty;
    
    /// <summary>
    /// 是否使用 jobDataMap
    /// </summary>
    public string PersistJobDataAfterExecution { get; set; } = string.Empty;

    /// <summary>
    /// 触发器状态列表
    /// </summary>
    public List<TriggerStatusDto> Triggers { get; set; } = new();
}

